package com.spring.demo.pojo;

/**
 * @version 1.0.0
 * @Date: 2022/5/23 10:39
 * @Author ZhuYouBin
 * @Description
 */
public class User {
    private Integer uid;
    private String username;

    public void init() {
        System.out.println("3、执行初始化操作");
    }

    public void destory() {
        System.out.println("5、执行销毁操作");
    }

    public User() {
        System.out.println("1、实例化阶段");
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
        System.out.println("2、依赖注入阶段,uid赋值");
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
        System.out.println("2、依赖注入阶段,username赋值");
    }
}
